package com.xbongbong.workflow.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 工作流节点执行后返回
 * @author 魏荣杰
 *
 */
@Setter
@Getter
@ToString
public class WorkflowProcessResultPojo {
    /**
     * 执行结果，true执行成功，false失败
     */
    private Boolean result;

    /**
     * 是否自动通过审批执行下一个节点
     */
    private Boolean isAutoApproval;

    /**
     * 是否为中止状态
     */
    private Boolean isSuspend;

    public WorkflowProcessResultPojo(boolean result, boolean isAutoApproval) {
        this.result = result;
        this.isAutoApproval = isAutoApproval;
    }

    public WorkflowProcessResultPojo(boolean result, boolean isAutoApproval, boolean isSuspend) {
        this.result = result;
        this.isAutoApproval = isAutoApproval;
        this.isSuspend = isSuspend;
    }
}
